package File;

import com.sun.xml.internal.ws.addressing.WsaActionUtil;

import java.io.File;
import java.io.IOException;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: LXW
 * Date: 2022-04-03
 * Time: 21:33
 */
public class Demo3 {
    public static void main(String[] args) throws IOException {
        File file = new File("some-txt");
        System.out.println(file.exists());
        System.out.println(file.createNewFile());
        System.out.println(file.exists());
        file.deleteOnExit();
        System.out.println(file.exists());
    }
}
